# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=clutter-gtk
pkgver=1.8.4
pkgrel=4
pkgdesc="Gtk clutter embed library"
url="https://wiki.gnome.org/Projects/Clutter"
arch="all"
license="LGPL-2.0-or-later"
makedepends="gtk+3.0-dev gtk-doc clutter-dev libxslt libxml2-utils itstool gobject-introspection-dev meson"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/clutter-gtk/${pkgver%.*}/clutter-gtk-$pkgver.tar.xz"

build() {
	abuild-meson \
		-D enable_docs=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
810f879a56cd71f1e9c4678ef704a997ee652d052cfea56b3ed9478f7a813a35dd2fdcded028ce17411ae02da52fa31e0fb8d1f4130c7b9f6d25eeb774b51ada  clutter-gtk-1.8.4.tar.xz
"
